package com.tsunami.authority.dto.auth;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @Classname ClientsUpdateDTO
 * @Description TODO
 * @Date 2021-12-02 15:23
 * @Created by lx
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "ClientsUpdateDTO", description = "客户端")
public class ClientsUpdateDTO implements Serializable {
    @ApiModelProperty(value = "客户端唯一ID")
    private String clientId;

    @ApiModelProperty(value = "资源id集合")
    private String resourceIds;

    @ApiModelProperty(value = "客户端认证")
    private String clientSecret;

    @ApiModelProperty(value = "权限范围")
    private String scope;

    @ApiModelProperty(value = "客户端支持的grant_type")
    private String authorizedGrantTypes;

    @ApiModelProperty(value = "客户端的重定向URI,可为空")
    private String webServerRedirectUri;

    @ApiModelProperty(value = "客户端所拥有的Spring Security的权限")
    private String authorities;

    @ApiModelProperty(value = "客户端的access_token的有效时间")
    private Integer accessTokenValidity;

    @ApiModelProperty(value = "客户端的refresh_token的有效时间")
    private Integer refreshTokenValidity;

    @ApiModelProperty(value = "客户端的一些其他信息")
    private String additionalInformation;

    @ApiModelProperty(value = "是否自动Approval操作")
    private String autoapprove;
}
